package com.shigu.test;

import com.opentae.data.mall.beans.MoOrder;
import com.opentae.data.mall.interfaces.MoOrderMapper;
import com.shigu.passageway.exceptions.PassagewayException;
import com.shigu.route.PassagewayRoute;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class YeepaySettle extends BaseSpringTest{
    @Autowired
    PassagewayRoute passagewayRoute;

    @Autowired
    MoOrderMapper moOrderMapper;

    @Test
    public void busettle() throws PassagewayException {
        Long orderId=5853L;
        MoOrder order=moOrderMapper.selectByPrimaryKey(orderId);
        passagewayRoute.selwayByPid(1L).payCallBack(orderId,Double.valueOf(order.getMoney()),Double.valueOf(order.getFee()),
                "SUCCESS");
    }
}
